﻿using System;
using System.Collections.Generic;

namespace YJKWndrStatisticsExcel.AreaTable.YJKExcelFormTool
{
	public class TableHeadCell
	{
		public string Value
		{
			get
			{
				return this.m_Value;
			}
			set
			{
				this.m_Value = value;
			}
		}

		public TableHeadCellKey Key
		{
			get
			{
				return this.m_Key;
			}
			set
			{
				this.m_Key = value;
			}
		}

		public List<int> RowIndex
		{
			get
			{
				return this.m_RowIndex;
			}
		}

		public List<int> ColIndex
		{
			get
			{
				return this.m_ColIndex;
			}
		}

		public TableHeadCell(TableHeadCell cell)
		{
			this.m_RowIndex.AddRange(cell.m_RowIndex);
			this.m_ColIndex.AddRange(cell.m_ColIndex);
			this.m_Value = cell.m_Value;
			this.m_Key = cell.m_Key;
		}

		public TableHeadCell(List<int> rowIndex, List<int> colIndex, string value, TableHeadCellKey key)
		{
			this.m_RowIndex.AddRange(rowIndex);
			this.m_ColIndex.AddRange(colIndex);
			this.m_Value = value;
			this.m_Key = key;
		}

		public bool KeyIsNull()
		{
			return this.Key.IsNull();
		}

		private List<int> m_RowIndex = new List<int>();

		private List<int> m_ColIndex = new List<int>();

		private string m_Value = "";

		private TableHeadCellKey m_Key;
	}
}
